
import 'package:flutter_getx/core/ext_core.dart';

enum ImageFormat {
  png,
  jpg,
  gif,
  webp
}

extension ImageFormatExtension on ImageFormat {
  String get value => ['png', 'jpg', 'gif', 'webp'][index];
}

extension PathExtension on String? {

  String get png => 'assets/images/$nullSafe.${ImageFormat.png.value}';
  String get jpg => 'assets/images/$nullSafe.${ImageFormat.jpg.value}';
  String get gif => 'assets/images/$nullSafe.${ImageFormat.gif.value}';
  String get webp => 'assets/images/$nullSafe.${ImageFormat.webp.value}';

  String get pathHome => 'home/$nullSafe'.png;
  String get pathLogin => 'login/$nullSafe'.png;
  String get pathState => 'state/$nullSafe'.png;


}